package com.gonsin.gmessage.annotations;

import org.springframework.messaging.handler.annotation.MessageMapping;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Documented
@Target(ElementType.METHOD)
@Repeatable(GMessageReceivers.class)
public @interface GMessageReceiver {

    /**
     * 该消息发送firstCmd指令内容
     */
    String firstCmd();

    /**
     * 该消息发送subCmd指令内容
     */
    String subCmd();


    /**
     * MQTT发送默认质量
     */
    int qos() default 2;

    /**
     * MQTT v5新增特性，共享topic
     */
    boolean share() default false;
}
